package com.liuguang.api.gateway.security.dto;

import com.liuguang.common.annotations.IsPhoneNumber;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName: UserInfoDTO
 * @Description：
 * @Author: wanghr
 * Date: 6:24 PM 2020/9/11
 * Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoDTO implements Serializable {

    @NotNull
    private String username;

    @NotNull
    private String password;

    //不为空，且满足手机格式
    @IsPhoneNumber(require = true)
    private String phoneNumber;
    @NotNull
    private String verificationCode;
    @NotNull
    private String codeKey;
}
